package com.zz.springboot.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.SecurityUtils;

import javax.persistence.Column;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MaxMoneyParamDto {
    /**
     * 澳门最大消化金额
     */
    private Integer aomenMaxValue;

    /**
     * 香港最大消化金额
     */
    private Integer xianggangMaxValue;

    /**
     * 操作人
     */
    private String operator;

    public MaxMoneyParamDto(Integer aomenMaxValue, Integer xianggangMaxValue){
        this.aomenMaxValue = aomenMaxValue;
        this.xianggangMaxValue = xianggangMaxValue;
        this.operator = (String) SecurityUtils.getSubject().getSession().getAttribute("username");
    }

}
